package com.xiake.consultsystem.controller;


import com.xiake.consultsystem.service.StudentService;
import com.xiake.consultsystem.pojo.vo.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Mr.Chen
 * @since 2022-11-13
 */
@RestController
@RequestMapping("/student")
public class StudentController {

    @Autowired
    StudentService studentService;
    /**
     * 预约详情接口,根据当前登录的学生id查找当前学生的预约记录
     */
    @ApiOperation("学生端预约详情接口")
    @PostMapping("/getRecordByStudentId")
    public Result getRecordByStudentId(@RequestParam Long studentId) {
        return studentService.getRecordByStudentId(studentId);
    }

}

